<template>
  <el-pagination
    background
    layout="prev, pager, next"
    page-size="10"
    :total="count"
    @current-change="pageChange"
  />
</template>
<script setup lang="ts">
import { defineEmits, defineProps } from "vue";
const prop = defineProps({
  count: Number,
});
const emit = defineEmits(["pageChange"]);
const pageChange = (e: number) => {
  emit("pageChange", e);
};
</script>
<style>
.el-pagination {
  margin-top: 24px;
}
</style>
